<?php

namespace IDock\Insurance\HBIC\Response;

use IDock\Http\Response;
use IDock\Insurance\HBIC\Response\CommonResponse;
use IDock\Printer\VehicleActualValuePrinter;

class VehicleActualValueResponse extends CommonResponse
{
    public function printerInit(): Response
    {
        $vehicleActualValuePrinter = new VehicleActualValuePrinter();

        $data = $this->getBody();
        $data = $data['BASEINFO'] ?? '';
        if(!empty($data)){
            $vehicleActualValuePrinter->actualValue =  $data['ACTUALVALUEZJ'] ?? '';
        }
        $this->printer = $vehicleActualValuePrinter;
        return  $this;
    }
}